package com.ys.sboot.security.controller;

import com.ys.sboot.config.corecfg.exception.ResponseResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>@description:home页面</p>
 *
 * @author yangshuang
 * @version 1.0
 * @date 18-5-11 下午9:17
 */
@RestController
public class HomeController {

    /**
     * 登录
     *
     * @return
     */
    @PostMapping(value = "/login")
    public void login() {
    }

    /**
     * 登录成功响应
     *
     * @return
     */
    @PostMapping(value = "/login_success")
    public ResponseResult<Void> loginSuccess() {

        return new ResponseResult<>();
    }

    /**
     * 登录成功响应
     *
     * @return
     */
    @GetMapping(value = "/login_test")
    public ResponseResult<Void> login_test() {

        return new ResponseResult<>();
    }
}
